package com.whz.workmanageol.config;

import com.whz.workmanageol.vo.SimpleResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;

@Controller
@RequestMapping("/session")
public class SessionManagerController {
    private Logger logger = LoggerFactory.getLogger(SessionManagerController.class);
    @GetMapping("/invalid")
    @ResponseStatus(code = HttpStatus.UNAUTHORIZED)
    public String sessionInvalid() {
        logger.info("session已经失效");
        return "/bootstrap/login";
    }
}
